add .redhat-ci.yml and .redhat-ci.Dockerfile
authorJonathan Lebon <jlebon@redhat.com>
Wed, 19 Oct 2016 16:37:54 +0000 (12:37 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 19 Oct 2016 20:35:23 +0000 (20:35 +0000)
Add a YAML file for the new Red Hat CI framework.

Rather than re-installing all the build deps everytime, which takes
time, I added a Dockerfile that we can wire up to the Docker Hub. For
now it lives at `jlebon/ostree-tester:rhci`, but we can move it under
the `projectatomic` org (or a new `ostree` org).

Closes: #535
Approved by: cgwalters

.redhat-ci.Dockerfile [new file with mode: 0644]
.redhat-ci.yml [new file with mode: 0644]

diff --git a/.redhat-ci.Dockerfile b/.redhat-ci.Dockerfile
new file mode 100644 (file)
index 0000000..304563e
--- /dev/null
@@ -0,0 +1,21 @@
+FROM fedora:24
+MAINTAINER Jonathan Lebon <jlebon@redhat.com>
+
+RUN dnf install -y \
+        gcc \
+        sudo \
+        which \
+        attr \
+        fuse \
+        gjs \
+        parallel \
+        gnome-desktop-testing \
+        redhat-rpm-config \
+        elfutils \
+        'dnf-command(builddep)' \
+ && dnf builddep -y \
+        ostree \
+ && dnf clean all
+
+# create an unprivileged user for testing
+RUN adduser testuser
diff --git a/.redhat-ci.yml b/.redhat-ci.yml
new file mode 100644 (file)
index 0000000..288f82c
--- /dev/null
@@ -0,0 +1,25 @@
+branches:
+    - master
+    - auto
+    - try
+
+container:
+    image: jlebon/ostree-tester:rhci
+
+tests:
+    - sh autogen.sh
+        --prefix=/usr
+        --libdir=/usr/lib64
+        --enable-installed-tests
+        --enable-gtk-doc
+    - make -j2
+    - make syntax-check
+    - make check
+    - make install
+    - gnome-desktop-testing-runner ostree
+    - sudo --user=testuser gnome-desktop-testing-runner ostree
+
+timeout: 30m
+
+artifacts:
+    - test-suite.log